import React from 'react'

function highSearch(WrappedComp){


  return function(props){
    const {onSearch,...otherProps}=props;
    return <WrappedComp {...otherProps} onSearch={(text)=>{console.log(text);onSearch(text);}}/>
  }
}
export default highSearch
